﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Exhibitions.aspx.cs" Inherits="Exhibitions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 <div class="cleaner_with_height"></div> 

    <asp:LinkButton ID="btn_AllExhibitions" runat="server" Text="All" 
        onclick="btn_AllExhibitions_Click"></asp:LinkButton> | 
   
    <asp:LinkButton ID="btn_OngoingExhibitions" runat="server" Text="Ongoing" 
        onclick="btn_OngoingExhibitions_Click" ></asp:LinkButton> | 

         <asp:LinkButton ID="btn_UpcomingExhibitions" runat="server" 
        Text="Upcoming" onclick="btn_UpcomingExhibitions_Click"></asp:LinkButton> | 

    <asp:LinkButton ID="btn_CompletedExhibitions" runat="server" Text="Completed" 
        onclick="btn_CompletedExhibitions_Click"></asp:LinkButton> 
    <br />  

    <asp:Panel ID="pnlOngoing" runat="server">
    <div class="cleaner_with_height3">&nbsp;</div>  
       <div class="competition_box">
    <div class="menuTitle">Ongoing Exhibitions</div> <br />
     <div>
        <asp:DataList ID="dtlOngoing" runat="server" 
            style="margin-right: 0px" Width="500px">
            <ItemTemplate>               
              
                <div class="exhibition_item_left">Exhibition Name: </div>
                <a href="PostingExhibitionInfo.aspx?ExhibitionID=<%# Eval("ExhibitionID") %>"> 
                <div class="exibhition_item_right"> <%#Eval("ExhibitionName")%> </div></a>   <br />
                <div class="exhibition_item_left">Topic: </div>
                <div class="exibhition_item_right"><%#Eval("Topic")%></div><br />
                <div class="exhibition_item_left">Date Start: </div><div class="exibhition_item_right" ><%#Eval("DateStart", "{0:MMMM d, yyyy}")%></div><br />
                <div class="exhibition_item_left">Date End: </div><div class="exibhition_item_right" ><%#Eval("DateEnd", "{0:MMMM d, yyyy}")%></div><br />
                <div class="exhibition_item_left">Place: </div><div class="exibhition_item_right" ><%#Eval("Place")%></div><br />
                <div class="exhibition_item_left">Organizer: </div><div class="exibhition_item_right"  ><%#Eval("Organizer")%></div><br />
                 <br /><br />
        <hr width="620px" align="left" />
                 <br />
                 
          </div>
          
            </ItemTemplate>
        </asp:DataList>
        <asp:Label ID="lblOngoing" runat="server" Text="Don't have any Ongoing Exhibition"></asp:Label>
    </div>
    </div>
    </asp:Panel>

    <asp:Panel ID="pnlUpcoming" runat="server">
 <div class="cleaner_with_height">&nbsp;</div>  
       <div class="competition_box">
    <div class="menuTitle">Upcoming Exhibitions</div> <br />
    <div>
        <asp:DataList ID="dtlUpcomingExhibition" runat="server" 
            style="margin-right: 0px" Width="372px">
            <ItemTemplate>      
                
                   <div class="exhibition_item_left">Exhibition Name: </div>

                <div class="exibhition_item_right"> <%#Eval("ExhibitionName")%> </div>  <br />
                <div class="exhibition_item_left">Topic: </div><div class="exibhition_item_right"><%#Eval("Topic")%></div><br />
                <div class="exhibition_item_left">Date Start: </div><div class="exibhition_item_right"><%#Eval("DateStart", "{0:MMMM d, yyyy}")%></div><br />
                <div class="exhibition_item_left">Date End: </div><div class="exibhition_item_right"><%#Eval("DateEnd", "{0:MMMM d, yyyy}")%></div><br />
                <div class="exhibition_item_left">Place: </div><div class="exibhition_item_right"><%#Eval("Place")%></div><br />
                <div class="exhibition_item_left">Organizer: </div><div class="exibhition_item_right"><%#Eval("Organizer")%></div><br />
                 <br /><br />
        <hr width="620px" align="left" />
                 <br />
          </div>
           
            </ItemTemplate>
        </asp:DataList>
        <asp:Label ID="lblUpcoming" runat="server" Text="Don't have any upcoming Exhibition"></asp:Label>
    </div>
    </div>
   </asp:Panel>

   <asp:Panel ID="pnlComplete" runat="server">
     <div class="cleaner_with_height">&nbsp;</div>  
       <div class="competition_box">
    <div class="menuTitle">Complete Exhibitions</div> <br />
     <div>
        <asp:DataList ID="dtlComplete" runat="server" 
                    style="margin-right: 0px" Width="372px">
            <ItemTemplate>               
             
                  <div class="exhibition_item_left">Exhibition Name: </div>
                <a href="PostingExhibitionInfo.aspx?ExhibitionID=<%# Eval("ExhibitionID") %>"> 
                <div class="exibhition_item_right"> <%#Eval("ExhibitionName")%> </div></a>   <br />
                <div class="exhibition_item_left">Topic: </div><div class="exibhition_item_right"><%#Eval("Topic")%></div><br />
                <div class="exhibition_item_left">Date Start: </div><div class="exibhition_item_right"><%#Eval("DateStart", "{0:MMMM d, yyyy}")%></div><br />
                <div class="exhibition_item_left">Date End: </div><div class="exibhition_item_right"><%#Eval("DateEnd", "{0:MMMM d, yyyy}")%></div><br />
                <div class="exhibition_item_left">Place: </div><div class="exibhition_item_right"><%#Eval("Place")%></div><br />
                <div class="exhibition_item_left">Organizer: </div><div class="exibhition_item_right"><%#Eval("Organizer")%></div><br />
                 <br /><br />
        <hr width="620px" align="left" />
                 <br />
          </div>
           
            </ItemTemplate>
        </asp:DataList>
        <div  style="float: right">  <asp:button id="cmdPrev" runat="server" text=" Pre " Width="60px" 
             onclick="cmdPrev_Click"></asp:button>
         <asp:label id="lblCurrentPage" runat="server"></asp:label>
        <asp:button id="cmdNext" runat="server" text=" Next "  Width="60px" 
             onclick="cmdNext_Click"></asp:button>
             </div>

    
    </div>
    </div>
    </asp:Panel>
    <div class="cleaner_with_height3">&nbsp;</div>  
</asp:Content>

